package dto;


import java.io.Serializable;

import entity.Hebergement;

import util.DateHelper;

public class HebergementVO implements PrestationVO, Serializable {
	private static final long serialVersionUID = 1L;
	private long id;
	private DateHelper dateDebut;
	private DateHelper dateFin;
	private String description;
	private AdresseVO adresse;
	private double tarif;
	
	public String toString() {
		return "[" 
			+ description 
			+ ", " 
			+ "arrivée le " 
			+ dateDebut 
			+ ", "
			+ "départ le " 
			+ dateFin 
			+ ", " 
			+ tarif 
			+ ", " 
			+ adresse 
			+ "]";
	}

	public HebergementVO() {
		super();
	}
	public HebergementVO(AdresseVO adresse, DateHelper dateDebut, DateHelper dateFin,
			String description, double tarif) {
		super();
		this.adresse = adresse;
		this.dateDebut = dateDebut;
		this.dateFin = dateFin;
		this.description = description;
		this.tarif = tarif;
	}
	public HebergementVO(Hebergement h) {
		super();
		this.adresse = new AdresseVO(h.getAdresse());
		this.dateDebut = new DateHelper(h.getDateDebut());
		this.dateFin = new DateHelper(h.getDateFin());
		this.description = h.getDescription();
		this.tarif = h.getTarif();
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public DateHelper getDateDebut() {
		return dateDebut;
	}
	public void setDateDebut(DateHelper dateDebut) {
		this.dateDebut = dateDebut;
	}
	public DateHelper getDateFin() {
		return dateFin;
	}
	public void setDateFin(DateHelper dateFin) {
		this.dateFin = dateFin;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public AdresseVO getAdresse() {
		return adresse;
	}
	public void setAdresse(AdresseVO adresse) {
		this.adresse = adresse;
	}
	public double getTarif() {
		return tarif;
	}
	public void setTarif(double tarif) {
		this.tarif = tarif;
	}

}
